package com.boot.validate.custom;

import java.lang.annotation.*;

import javax.validation.Constraint;
import javax.validation.Payload;

@Target({ElementType.METHOD, ElementType.TYPE , ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = NameJsrValidator.class)
public @interface NameJsr {

    String message() default "别名不符合规范要求";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}
